package main.dto;
// default package


/**
 * TCommontypeId entity. @author MyEclipse Persistence Tools
 */
public class CommontypeId implements java.io.Serializable {

	// Fields

	private String stationnum;
	private String channelnum;
	private String type;

	// Constructors

	/** default constructor */
	public CommontypeId() {
	}

	/** full constructor */
	public CommontypeId(String stationnum, String channelnum) {
		this.stationnum = stationnum;
		this.channelnum = channelnum;
	}

	// Property accessors

	public String getStationnum() {
		return this.stationnum;
	}

	public void setStationnum(String stationnum) {
		this.stationnum = stationnum;
	}

	public String getChannelnum() {
		return this.channelnum;
	}

	public void setChannelnum(String channelnum) {
		this.channelnum = channelnum;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CommontypeId))
			return false;
		CommontypeId castOther = (CommontypeId) other;

		return ((this.getStationnum() == castOther.getStationnum()) || (this
				.getStationnum() != null && castOther.getStationnum() != null && this
				.getStationnum().equals(castOther.getStationnum())))
				&& ((this.getChannelnum() == castOther.getChannelnum()) || (this
						.getChannelnum() != null
						&& castOther.getChannelnum() != null && this
						.getChannelnum().equals(castOther.getChannelnum())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getStationnum() == null ? 0 : this.getStationnum()
						.hashCode());
		result = 37
				* result
				+ (getChannelnum() == null ? 0 : this.getChannelnum()
						.hashCode());
		return result;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}